package com.homework07.work02;

/*
Student类
要求有以下属性：
 学员编号（String） 姓名（String） 性别（String） 身高（double）
 年龄（int）使用封装的原则，并提供无参和全参的构造方法。
*/
public class Student {
    private String id;
    private String name;
    private String sex;
    private double hight;
    private int age;

    public Student() {
    }

    public Student(String id, String name, String sex, double hight, int age) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.hight = hight;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getHight() {
        return hight;
    }

    public void setHight(double hight) {
        this.hight = hight;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
